package org.millioncall.yueyoga.admin.dao;

import java.util.List;
import java.util.Map;

import org.millioncall.openplatform.common.PaginatedList;
import org.millioncall.yueyoga.admin.model.Groups;

public interface GroupsDAO {

	public int saveGroups(Map<String, Object> map);

	public int deleteGroupsById(Integer id);
	
	public int deleteMemberGroupsByGroupId(Integer groupId);

	public int updateGroupsById(Map<String, Object> map);

	public Groups findGroupsById(Integer id);

	public List<Groups> findGroupsByOrganizationId(String organizationId);

	public int findGroupsByName(String name);

	public PaginatedList<Groups> findMemberGroupsByCdts(
			Map<String, Object> map, int start, int limit);
}